package com.example.sht37.service.impl;




import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.example.sht37.dao.Empdao;
import com.example.sht37.entity.Emp;
import com.example.sht37.service.EmpService;
import com.example.sht37.vo.Result;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmpServicelmpl implements EmpService {

    @Autowired
    private Empdao empdao;

    @Override
    public Result<Page<Emp>> listByPage(Integer currentPage, Integer pageSize) {
        Page<Emp> page=new Page<>(currentPage,pageSize);
        Page<Emp> page1 = empdao.selectPage(page, null);
        return new Result<>(200,"查询成功",page1);

    }
}
